package com.example.demo03_mvm.utils;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;

public class FlowLayout extends ViewGroup {
        public FlowLayout(Context context) {
            this(context,null);
        }

        public FlowLayout(Context context, AttributeSet attrs) {
            this(context, attrs,0);
        }

        public FlowLayout(Context context, AttributeSet attrs, int defStyleAttr) {
            super(context, attrs, defStyleAttr);
        }

        @Override
        protected void onLayout(boolean changed, int l, int t, int r, int b) {
            int count = getChildCount();
            for (int i = 0; i < count; i++) {
                getChildAt(i).layout(l,t,r,b);
            }
        }
}
